added support for styling via xml