added seetab function