#12 added flag is_visible in to model for template