making index page more dynamic