App logic update