recipeSelected is set to null after save button is pressed in EditPanel. This prevents duplicates from being produced