Clean up and add homepage, reset page, invalid page.