get dept value on select change