setVisible when it could be visible