Add ItemDetails func and edit Edititem Logic