Changed to display none instead of visibility hidden.