editItem works properly and populates form fields with saved data for selected entry.