update DOM and fix ddl focus