updated gui, fixed disposal