Fix table layout
Implement tab view