I solved it, so for those get stuck here , we have to add Custom routes for ajaxifying and also mention which template to use.
to solve that add custom mapping to the file
/src/views/config.json
like this
"^route/.*": "Template to use without .tpl at the end",
"^route/.*/add": "template"