generic method for status todo