Fixed method declaration/implementation order.
Changed flag name from shown to hidden.