Added support for spring security for ajax call and modified some url and code