Fixed the duplicate column bug

Now everything migrates.
moved around some javascript

modal window always pops up now