Wouldn't it be cleaner if the settings/logout buttons you added to the edit page use the right action directly, rather than performing logout or redirecting to settings from within the `#update` action?