error rendering API (layout view)