make print button work