update controller and base template