initial version of modal windows finished