added rotation support for login/logout popover