Rebuild menu when it's needed