new handle request function refactor
refactor code to use content class instead of site