add function to delete and view details information of person