uploaded upload widget logic