* Extracted the drawing surface of the function into a separate panel so as to allow adding buttons, fields and so on to the parent frame