Add functionality to the 'set pin' button