Add submit functionality.