updating to align widget and canvas