Fix sign out and clean gui