Refactor home page button