small refactor home page