The H-mode pedestal plays an important role in determining global confinement in tokamaks. In high triangularity H-mode experiments in Joint European Torus with the ITER-like wall (JET-ILW), significantly higher pedestal temperature and global confinement have been achieved with nitrogen seeding. The experimentally observed increase in pedestal height is inconsistent with the stability calculations using the experimental profiles. Numerically, we find that the consistency with stability improvement can be restored if we assume a shift of the pedestal inwards and increased ion dilution due to the impurity seeding. Significantly better confinement and pedestal height have been observed in JET-ILW plasmas when the core pressure is increased. The enhanced pedestal height can be linked to an improvement in edge stability arising from an increase in the Shafranov-shift, higher edge current, and pedestal widening in flux space.