write tabview