Um.
Look at your code.
I'll compress it a bit...
if (A) { ... }
else if (A && B) { ... }
else if (A && B) { ... }
So...if it's not A, what does it do? Nothing...
And even if it did have something like the right conditions (and I'm not sure what they are) the conditionally executed code only makes things visible, it doesn't try to hide anything. So nothing will ever disappear either.