Added function for deleting a timeline item