check for modal view controller