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

First, please note it's not polite to call my effort to improve the code base `a waste of time`.

I insist we should not allow unnecessary lines of code like this one to be kept in the code base.