class view of flask