adding winname and tabname