created adapter for the textview and a seperate class for todoitem