some ajax, json and other minor adjustments