add index to public and delete links and change routes