made sure datatables and ajax are only being loaded on certain pages