specify data file as parameter; fix bug in index page link to category pages