Fix some top panel bugs, refine other elements.