Added function to mark todo items as done in the way it want it marked.