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

@NTaylorMullen 
Why allow this to be null?