Fixing proper passing ApplicationContext
Using variable name for show active routes pref.