implement panels on main form as controls