adding edit icon to index view