logout from settings menu after closing menu