Clean code of BrowserActivity