Set templates and main view from Foundation