Automatic button click function mapping.