Panel switching works.
Switching panels is now event driven!
Removed some redundant files.