use array to store checklist item and refactor codes