clear canvas when switch