Added the afterRender function to the MVC framework. Beginning of dynamic layout function for foyer.