updating structure and adding styles