Fixed template issue with main view.