prelim upload and display code done