add pull to refresh code