added view_class to view function
updated requirements