giving the 'Change Tool' button a function