activate applications when they are focused