transform a siteapp to a webapp