Add submit functionality