made events dynamic on index page