add ability to setup default state in xml