Update view account function.