fixing url to ajax for fields