update client side method 2 using select