add directive to replace submit with link