added directive spec that remove element on deletion