add action listener and get the input