embedded in navigation controller and added dismiss button