#303: modal updated to hide extra buttons if dialog loading fails.