added some animation for no good reason
writing out xml working