advanced app: go back after login, not home