Made views dynamic