Add function to change role