not calling ajax function on close encounter details