Activate application before opening modal windows.