make Dom visible only when DOM loaded