Added InputManager and fixed a NPE for the Tabs.