(fix) closing the delete and reorder buttons upon click of add new element