generalize rendering for actions