created smooth select function
'update'