refactoring the index page to be slick