fixed the edit mode for users and houses