Added setVisible for ProgressBar