make Previous Step button work; toggle Show/Hide pattern buttons