added functions to sort content on modal forms. now looks and acts snazzyy!