conditionally show teacher