Clean-up on controller
Update to support sub pages by extracting domain name for paths to assets