Made the view dynamic