added endif to editpitch form