add main layout
awesome coding style