latest architecture changes

added gallery, refactored router