Clean up of main window structure

Clean up of main window structure
Cleaner implementation of checkbox draving

The error where the checkboxes were strechted all over the whole cell in
ubuntu, was ammended.
Error while compiling on linux

Missing of a header broke the compilation on a ubuntu host.