added protocol for popover dismissal and laid out web view wiring.