update dialog to use namespace in resources
verify controls in the layout before use