logout: fix and move to logout view