adding index controller