refactor contentRenderer