The top court said it would appoint a committee headed by a retired high court or district judge to manage the affairs of the temple in the interest of lakhs of devotees besides including the main stakeholders in the managing committee.