Fixed directive to save the expanded state to the scope variable.
Fixed minor issues with tag styling and label counting.