GUI crash and various problems