reinitialization on size change added
pause on minimized implemented