refactoring
set width and height for root layout