Finally got the views to load dynamically