combined intitialize_view and initialize_model