making accordion views dynamic