Update delete buffer cmd to switch to previous buffer