fixed index controller
Merge pull request #15 from zachgersh/index-controller

fixed index controller