Added preventdefault and logging to button presses