refactored home route