debug of index controller