updates code scrollbars