Move tabs angular functionality to a provider instead of controller.