fixed broken modal by reordering modal markup