Fixed some bug with the MouseEvents, Added a simple Window Handler
(needs to be redone later, it works now)