BPC-183: move main panel to separate class