auto render when content is changed