#527 Moved li to templates so that an item can be completely hidden