update starts immediately after click on auto-update button

mini-refactoring