refactoring download page