First attempt at making index page dynamic