add directives for back and confirm