Refactor templates the generic layout for island