modal popping up on enter
added modal promise to enable pop up on enter
latest changes