Separated rendering from GUI