details and delete functions implemeted