Made template view dynamic.