Loading xml data and showing 5 xml nodes per page

I am loading data from xml file.
There is 12 XML nodes (in this case)
I don’t want to show all xml data in Flash by default.
I am attaching one button on the stage for every 5 xml nodes (depends how much data I want to show per one page, let’s say 5)
So every time user clicks on one of this buttons, the data from startIndex to endIndex of this button is shown

FIRST: I have a problem clearing the attached data every time user clicks the button
SECOND: I have a problem with the last button’s endIndex variable. it should be 12 not 15 (in this case)!!!

Can someone help. I am attaching fla and xml

www.galahala.com/test.zip