add first data model and a return data method in the main controller. Any ajax request has also been added in the main javascript file.