change homepages_path to root_path