implemented pdf button in single template