Modifications to register controller and template