init PanelController
[tested] Extract duplicate codes in build script
init panel controller more
[Untested] Half-way through rearchiteting edit panel as a dialog