fixed bug with xml preview, hide button, highlight buttons