Layout refactoring + resizer in menu layout demo