refactoring uploads views