Update the ancestorClass in the backend menu

With this update when some submenu item of some dropdown option are active, the ancestor will be active too.