changed the controllers and changed the template