Auto updates layout when a new buffer is opened

This was driving me nuts.