move window resize handler to events
statusbar positioning
rm debug code
bugfixen