adding scrollOffset & percentage fix