Fixed upload button layout bug and cancel upload if there are no files