Added submit button function