Rather than doing this in both the applyFrame and applyAppStyle functions, let's add applyCommonStyles to the main initPage function outside of the if statement.