Added a new controller to seperate the logged in home page and the not logged in home page. This stops the resource calls from running multiple times.