fix gallery in home page and local in index controller