update back-to-top function