added directive to index page.