added views to flask