Updates style and layout