api controller + layout