added delete confirmation, loading spinner and other changes.