removed unnecessary conditionals from app.updateHeader