Scheduler rendering plain XML

Hello,

When I open scheduler page, it only shows plain xml that I am sending to scheduler.

Here is my init function:

 scheduler.init('scheduler_here',new Date(),"week");
 scheduler.load("<g:createLink controller="scheduler" action="getData" />","xml");

and code in my controller:
SchedulerConnector data = new SchedulerConnector(null);
data.servlet(request, response);

	ArrayList<Object> sample = new ArrayList<Object>();
	sample.add(new SchedulerEvent(1, "2014-03-29 20:00", "2014-03-29 21:00", "creation time"));
	sample.add(new SchedulerEvent(2, "2010-02-16", "2084-06-08", "second part"));

	data.render_array(sample, "event_id","start_date,end_date,event_name");

The only thing that loads is xml file with those two sample events.

I solved problem by putting function getData() in different controller that doesn’t hold index() function that renders scheduler.