fixing bug in display upcoming / past events
tidying up the home page
pulling import functionality out into its own module