Added the code to dismiss popovers manually.