Program fully maximizable now with custom closing behavior