apply css performance tidy up