update ui and fix empty-content bug