disabling title bar close button, configuring error message popup