added listeners for ValidateMenuItem button