Implement some html generation stuff