working on ios6
added refreshing