Setting up cms foundation