fixed a bug with the ajax print by actually adding the appropriate class