Added option to change mode of panel swap.