Code updated, able to get eventEntry from server