Cheatsheet code fixed.

Cheatsheet visibility code refactored.