polish(global): update navbar, sidebar etc to make it support nested state to indicate parent state's class etc