Adding functionality to the form.