adds functionality to submit button