fix crash when upload done and photos view not visible.
fix pausing and resuming fetching photos