Fixed some minor gui bugs