make redefinition for the scroll bar of document work