add form for routines, render them on new and edit pages