Why display none? Why not wrap the panel in the if?