begin dynamic layout