Initial script for getting events of pages