trying to get canvas to resize properly