update interface, add logout feature, update mainController