Used .on('hidden',..) for modal close action