Removed logic from tab markup and added it into it's own controller.