Extending example. Adding PageChangeListener and methods to trigger fragment events from within and from the Main Activity