fix no photos view and loading view.