added logging in page