added save previously viewed instructions
fixed code so end screen shows