added home view pages and methods in controller