create panel controller