added delete icons
refactored to initElements
implemented delete todo