add active class to current li and any parent li