Gui design and updating

Started on gui design and fixed some bugs in updating gui