adds layer toggles to index view