Moved event info functionality from MainFunctionality.js to eventInfo.js file