added resize listener for workspace repainting.