Preparations for the modal windows