fixes upload button click