rejigged updateUIElements to the right way - checks for attendance submitted instead of assuming