Table menu closes on second click