make the navigation buttons work, closes #1001