made alert work in ios7