added switch nav-buttons functionality