removed alert and added phonegap message box