change the app structure, create layout page for each function, modify
each page, shrink all function codes into 1 page to avoid scale out of
the code. separate the service code into a specific package.