add submit directive