first, putting the code in function main

then, create panels and give them an actions, that's all!

btw, there are a menu code in aum. laugh