functional flip transform on button click event.