accidentally removed the js action on materials show so I've put it back. Messed about trying to get the wkhtmltopdf to work but to no avail