index controller seperation