add form submit functionality