cleaned up ajaxify