modal control validations and events