created a new view and added controller methods