add controller to html