updates tags and layout