Added edit and delete functionality to the single detail page