added clearCanvas to gwindow