refactored view -> template, controller -> view, and created a new controller