Pass all data needed to make AJAX call from controller to the view