simple gui and some coe changes. bad commit. need refactoring