updated getting the checked checkboxes' values