previous button works
removed extraneous code from template
deleting more extraneous code
more unnecessary code