adding toggle function to newly added tasks