Fix layout file name.
Remove unecessary code and fix a bug that ocurried sometimes, when the webview wasn't being added to the page view.