implemented edits for both users and spaces