how to tie a function to a button, this is a code fragment of how a buttons make up is