Add html to view function