Add panel hiding, and some other stuff