Add panel management for the modal

Now reset to the source panel ( not the last one where you were)