refactored and test coverage for rest tab
table containers expand to fit content

closes #180