separated the web view directive from main code