added edit functionality to users