Added functionality and listener to get the edit todo item working