minimization bug fix

To fix the minimization problem had to add a canvas to the frame.
Now need to make auto dimension adjustment to the canvas every time the
main frame dimension is changed
Revert "minimization bug fix"

This reverts commit 48e3014e788a0a8e10633c0dbf72509e4528dc2f.