added edit button to index