got rid of window line in uploadController