wired up button click onclick handler
Now logging text to log file