Fixed name viewMain->Mainview
Fixed name viewTemplate->Templateview