updated some ajax stuff