Changed the compilation function to actually go back to the previous
window layout instead of just going back to the previous buffer.