modification setvisible wrong method