refactoring fixedHeader and scrollTop

-ipad/mobile is buggy