add and edit now work completely for entry