use focus directive and clean up focus behavior