clean up ui template