Added bits to stop animation when miniaturized, disable closing the window (at the moment)