add routines resources, fix form for creating routines