preparing for modal windows