added logging for pageCreated and pageCloseCalled