Added get role_type func
Added onchange funcaitonality