add logout functionality to settings window