Create separate messages array for each window