Implement tabs controls programmatically
Minor refactor
empty lines removal