implement update_action and change the context menu's upload to update

it is just not the point. is it necessary to waste the time to discuss to remove the three trivial lines which might be deleted sometime in the future?