added to index view of the main controller