properly compile the UI