added a directive to the index page