change arrow direction on minimization