Binding button-click to text print