optimized resizing and added fullscreen (f11)