Convert application index's view_state to a proper model