setting up the homepage controller