Added trigger for modal to the finished input