update UI and added functions to update Users and Groups