can add friend or unfriend and updates count through ajax but buttons don't switch states