make close method public because it is used outside of BrowserTab