optimized class change on show navi