added event handler for role name input field