added setting for pan buttons.