upload template for query result page