updated header scroll to work on up and down