implement rendering conditionals