Improved HtmlObject visibility control