move menu loader thread to module