basic alert and success callback work in ios