problem with static variable and try block
creates menu with all items
search creates clickable menu