Refactoring 

I refactored MainWindow class for a better overview and reading.
That's because @Coppolaemilio programmed it this way and I haven't noticed it yet.

It would be so cool if you could fix those problems