worked in index view