removed hard coded url from ajax call and replaced it with #SpringUrl()