hiding the warning message in Apply Leave.