registration page and gallery fix