if(addVideoHolder){
    addVideoHolder.insertAdjacentElement('afterend', createShowButton(addVideoHolder, 'add video'));
    //adding the delete button on existing elements
    const imageElements = document.querySelectorAll('#trick_form_videos>div>div');
    imageElements.forEach(function(elem){