adding events data and scripts