Ui rendering rewrite