adding pull to refresh functionality to main screen.