overide navigator alert function