Fix bug #1008 with modal visualization and small refactoring.
applied minor fixes to commit 56e1f4ed8a8486ad951a6af087475e69f03f45b7
Merge pull request #134 from globaleaks/fix/1008

Fix bug #1008 with modal visualization and small refactoring.