refactor app_reverse if no page