Edit link on index and edit function/ view work