Update scolling code