adding window swap plugin