Use only window.reload to resize pages