Added template for the query page