i would keep this outside the block, otherwise an invisible control could always trigger rendering.