handle panel positioning corner cases; publish