refactoring home action in recipes controller