implementing task status toggle