reorder html to get delete button to work