added fetch details of unit ajax endpoint