changed the start and stop button functions to be inside of the main function. changed the button tag to a input tag to make everything work.