removed setVisible method