fixed document type and scroll issue