removed set_heml_content_type function, as it was not being used
adjusted code to ensure there are no PHP notices for admin screens