re-factor web framework UI