MainWindow: Function tab implementation.