implemented client side search and expand/collapse all for menu search