Add update for ap state