Added custom tab behavior