Add layout management to html