Delete functionality of todo