implement status toggle