updates layout and pop up styles