a few improvements of tabpage