todo s controller and linked to index