add pause to avoid dismiss presentViewController warning