modified the search and add bars, and gave condition when trying to add empty todos