Rewrites index controller