Add code, styles optimization, handling resize event