Added completion block for dismissal