toggleVisibility fixed when using display property, will move on the visibility property.