improved: finishing with detail/summary checkboxes. reorder general "if" conditions sequence

Signed-off-by: semteacher <semteacher@gmail.com>