refactoring set_homepage method