connecting controller methods to form submission