made modifications to headers and fixed the scroll issue of AF