updated to get content dynamically from server