adding a method for pull-to-refresh on the ios client