working on index controller