Add layout rearrange after (un)setting scratchpad.