normally functionality with modal windows