refactor SignOut