Added controller for ajax requests.

Note: At the moment, only the template.