Set up controller and index