refactor actions to top route