Same thing here, move the code from applyAppStyle directly here.