strip minimizetotray addon, simplify code