updating the page generator and base view to work with razor helper functions

@NTaylorMullen 
Definitely need some comments explaining what each of these writes are supposed to do.