makes functional directory/index page