pretty print button now works