working upload
fixed uploading and color coding