updates css and cap