catered for unusual occasion where fragment selector fails to find results
added extra checking for pjax requests