adds countdown and next event functionality