updated prev next buttons related to issue #15