front view refactored using an added frontend template.