refactor GUI
gui stuff