swapped button functions