Adding Visible to template query builder