trying to show the gallery but can not continue until results.urlDir working properly