adds cell sizing logic, split css mixing into separate files.