Moving some code into modals and starting the full editing, deleting and duplicating process