Added function to set number of displayed previous events based on number of future events