Implementing add new ingredient dynamically, updating template and cleaning code