has functions that gets the input and runs the function on click.