Modified it as more lightweight and simple, including fixed issue where menu items of professional feature not marked correct style class.