use event for game init and put some view code into view