Mac compability
Better main.cpp
Ui Selector dialog