changes for editing existing data