Updates directive to allow for hover behavior