change enabled/visible properties to private