added upateSelectInput function