change input on select