New function to Show warning alerts