completed changes for adding swipe refresh