applying active style to selected navigation tab