updated html to button from submit, updated checkbox loop