Simple version semi-working

drastic changes from parent branch. gutted the actions and completely replaced
the buttons; now just "next" and "previous". requires the statements to be
constructed inside the javascript. << This is going to be error prone. going
forward seems to work fairly well, going back works until you try to go forward
again.