Update AppMain

I will put itback the way it was. I just wan tu to see the code I have