added pull to refresh & pnumber validation