take index controller out separately