added cleaning up xhtml after commit