Add and edit item functionality separated to two different buttons.