Move html source for upload view to method