extend template and directive for activate/deactivate action