fixed #4 added visible/invisible attributes to model