Remove redundant switch statements.
Remove unused tab.
Fix connection code.
Fix manifest file.