first load fixed plus removed php from query_mod and made ajax call instead