move tab logic to its own controller
remove unused code