Hard coded the indexes for the application tabs.

`indexOfObject` was returning invalid values so the tab would never be selected.