Fixes #117. Navigation bar buttons configured properly when switching views.