finally fixed modal

script links needed to be in order