synced functions between event_page.js and factories. js