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

I have removed them. And I don't see any benefit of discussing about these lines.