Fixed crashed related to menu options.

Re-implemented all menu code, added some try-catches. 

Fixed bug where clear color list did not clear the back-end storage.

Some minor gui fixes.