changes to ajax
update ajax calls and ajax spinner