add all code of Pull-to-Refresh