modified style and added total left in period