calculate size of webview
fixed update of validation sign. removed unused code