add close method
document 'open' event