added the functionality for admin to change the user group