add didDismissViewcontroller blocks
update Example