Code written to load view from controller