view on_before_render