Who is the head of magistrate court