prep html for view functionality