trying to render HTML from any class other than the controller