changed value names and added submit button