revise right arrow and left arrow if conditions so squirrel stays on page