added ajustment of canvas while screen resize