refactored close button event listener to use this.hide instead of this._close