3517 bug editing order
A flag that allows us to determine if we are currently editing a plan is added to the model. This flag get's set when the edit plan button is pressed from the queue. It is set back when the plan is added back to the queue and moved up in the order.
When the flag is set the plan added to the queue is moved up by one position. The old plan is deleted as before.
This was easier than changing the logic for the way a plan is deleted and edited.
Edited by Smith, William