changes to gui
fixed bug