Layout change now behaves correctly with already existent plots