Completed implementation of tab control.