set up pageloaded function etc