refacted ajax url