discard errors, also rewrote loop
added Back button functionality