update controllers/type-rendering-detection

 (resubmit from corrupted PR #52) closing #52