replace duplicated code with render method
to bring in inline callout