gallery page and refactor baseurls