fix updatemode select and save to db