add mark-as-complete functionality