refactor btn group in headers and wire confirm directive