directive for index page