prevent default behavior of pressed buttons