trying to get canvas to resize to window