scrollbar cleanup for source mode