fixing the build and adding pull to refresh