add more factoring
add js for the submit event handler, and a handle request method to pull data from the api