turned minimize off because its so slow on the rpi and added waitforit in after init event