sorted out the controller index connection