Added submit functionality