Implementation for the "Add ingredient" button