added toggle completed API for actionitems