Solved problem with editing existing data