Improve tab view

Extract methods that to be further inherited.