Changed select input value retrieval and setting.