added functions and listeners for completing and deleting todos