added main UI and removed bug where app crashes when you compile after fresh install