modified the request type
fixed the json return error
removed non-jquery ajax. Started working on render function