adding a basic layout
updating demo to support switching layouts