added glviewport to resize with window