attempt at submit button functionality