fixed upload button action for pop-ups