Merged controller for html and rtf in one single file