admin-ui: Improve summary expansion
admin-ui: Fix JS bug and refactor JS code