Uptdated function for set position of picker
merge with newest version
Updated function for set picker position