Update AppMain