added checkmark functionality