add dismiss method for WebModalViewController