modified generic_template_view to take context_dict arg