Functioning version for web.xp. A few comments need to be adjusted for testing on cms