fix widget query box to do ajax