update galleries controller