Hooked onchange event to select thanks to @zhusee2