moved setVisible()