updated newrecipe function, added editrecipe