remove extra foreach on display page