add function to remove pull to refresh handler