added contoller and view classes