directive fixes and mouseover active/inactive states