toggle visibility of popup window