Gallery 4.0

develop home page, code refactoring