Configure role dropdown onchange field

This commit adds a feature to execute a function with the onchange field
in the dropdown. When a user clicks a role in the dropdown, it will then
load the required fields to define that role.