Add viewload check for dialog:true attribute.