Refactor panel methods; move layer tag.

Refactor panel methods to better see the structure of how panels are
added to the card layout. Also put the layer tag centered above the
dialog on the east side -- it is more visible this way.

TODO: Change the layout manager to avoid overlapping. Maybe
GridBagLayout?