Save button saves graphs to pdf