refactor clicking set a the homepage