Implement tab layout.