added support for pull to refresh