Added GUI in controller, and lots of fixes.