implement confirm modal js - fix #15