Added to controller but then the html view elements get displayed. Change made