Use CSS display property instead of visibility