Changes to allow scrolling left and right