Added the foundation for the encounter view