Show the pdf file in query result view + do validation in query view