Remove old version of function definePanels.
Harmonization of the code compare to Lesson10. New function definePanels.