Refactor ui

I know that it's not related to CSS, but the "Exit" string should be moved to the locales.