remove unused css
note required vs optional settings
margin for small mode
integrate resize page code