Update ui.cover to use cordova events

cc @rwmtse