added view details js
added view details js