Code improviments

Stop show function if the modal windows is already visible.