create modal inside .success() promised method so modal has network data it needs