js changes for pick validation