Fixed crash related to menu options.

Some minor gui fixes.
Merge pull request #3 from idynin/master

Fixed crashed related to menu options.