call init_views in create_app