add functionality to editStage modal

drawstage function, bind resetting of modal when hidden