Ok, so there is not a better way to do it.
I have an other problem.
I want to add a scroll bar button into the sidebar but when I add it as a widget it appears only on the blog page (archives page sidebar). I want that my scroll bar button appears on all my pages.can you tell on which page I have to add my code?
thank you for your help.