added prettyprint, back and next buttons