creating a dynamic webpage