flatUI and proper stats implementation