tk menu working after tab flip