Worked on the functionality of the print button