add input history for buttonmode
add button to add newline to history