Added handling for www. version of the vhost
sidebar html is now rendered in a seperate function