working out issues with opening / closing popovers