setvisible at correct place