Added functionalities to edit user dialog