Refined alertMessage directive