implement HorizontalScrollView delegate methods in ViewController class