attempt to check referer - now working; initial html fragment generation