Adds working writemode numlines and tabbar handling