override alert function