added controllers for main view states