add index method to controller interface