attaching pulltorefresh listener