fixes to the markup widget