fix adding window to workpace