reset the layout of the code