tabs directive; fixed a bug in service first_child_of_class